package com.example.mahoutdemo.core.user.video.operation;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.mahoutdemo.utils.RecommendPreference;
import lombok.experimental.Accessors;
/**
 *用户电影评分
 */
@TableName("user_video_operation")
@Accessors(chain = true)
public class UserVideoOperation implements RecommendPreference {

    /**
     * 唯一标识
     */
    @TableId
    private Long id;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 商品id
     */
    private Long itemId;
    /**
     * 评分
     */
    private Float value;

    public Long getId() {
        return id;
    }

    public UserVideoOperation setId(Long id) {
        this.id = id;
        return this;
    }

    @Override
    public long getUserId() {
        return userId;
    }

    public UserVideoOperation setUserId(Long userId) {
        this.userId = userId;
        return this;
    }

    @Override
    public long getItemId() {
        return itemId;
    }

    public UserVideoOperation setItemId(Long itemId) {
        this.itemId = itemId;
        return this;
    }

    @Override
    public float getValue() {
        return value;
    }

    public UserVideoOperation setValue(Float value) {
        this.value = value;
        return this;
    }
}
